<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		function Car() {

			this.name = "奥拓";
			this.color = "黄色";

			this.run = function () {
				document.write(this.name+"可以跑");
			}
			this.paoniu = function () {
				document.write("可以泡妞");
			}
		}


		car  = new Car();

		car.name ="奥迪";

		car.age = "2年";

		car.run();

		car.zairen = function () {
			document.write("裁人");
		}

		car.zairen();

		car1  = new Car();

		console.log(car,car1);





	</script>
</head>
<body>
	
</body>
</html>